package com.example.spring_mysql.redis

import org.springframework.data.redis.connection.Message
import org.springframework.data.redis.connection.MessageListener
import org.springframework.stereotype.Component

@Component
class ServiceToWsListener : MessageListener {
    override fun onMessage(message: Message, pattern: ByteArray?) {
        println("message: $message")
    }
}